# encoding: utf-8

class UserMailer < ActionMailer::Base
  default :from => "admin@yipingba.com"
  
  def registration_confirmation(user)
    @user = user
    mail(:to => user.email, :subject => '请激活您注册的新帐号!')
  end
  
  def activation(user)
    @user = user
    mail(:to => user.email, :subject => '你的帐号已经激活!')
  end
end
